import request from '@/utils/request'

export function update(data) {
  return request({
    url: '/goods_order/update',
    method: 'post',
    data
  })
}

export function query(params) {
  return request({
    url: '/contract/query',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/goods_order/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/goods_order/del/',
    method: 'post',
    data
  })
}

export function goodsList(data) {
  return request({
    url: '/goods_order/list',
    method: 'post',
    data
  })
}
